package com.tingyun.sign.utils;

public class MyAssert {

	public static void isNull(Object obj) {
		if(obj != null) {
			throw new RuntimeException("");
		}
	}
	
	public static void isNull(Object obj, String message) {
		if(obj != null) {
			throw new RuntimeException(message);
		}
	}
	
	public static void notNull(Object obj) {
		if(obj == null) {
			throw new RuntimeException("");
		}
	}
	
	public static void notNull(Object obj, String message) {
		if(obj == null) {
			throw new RuntimeException(message);
		}
	}

	public static void isTrue(boolean boo) {
		if(!boo) {
			throw new RuntimeException("");
		}
	}
	
	public static void isTrue(boolean boo, String message) {
		if(!boo) {
			throw new RuntimeException(message);
		}
	}
	public static void notTrue(boolean boo) {
		if(boo) {
			throw new RuntimeException("");
		}
	}
	
	public static void notTrue(boolean boo, String message) {
		if(boo) {
			throw new RuntimeException(message);
		}
	}
	
	
}
